<?php
/* @var $this CategoryController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'Categories',
);

$this->menu=array(
	array('label'=>'Create Category', 'url'=>array('create')),
	array('label'=>'Manage Category', 'url'=>array('admin')),
);
?>
<div class="view">
<?php
$this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'category-grid',
	'dataProvider'=>$model->search(),
	'selectableRows'=>4,
	'filter'=>$model,
	'columns'=>array(
		array(
			'name'=>'id',
		),
		array(
			'name'=>'name',
		),
		array(
			'name'=>'parent_id',
			'value'=>'$data->parent',
		),
		array(
			'class'=>'CButtonColumn',
			'template' => '{update}{delete} ',
		),
))); 
?>

</div>
